<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%-- <base href="<%=basePath%>"> --%>
<script type="text/javascript" src="<%=basePath%>js/salary.js"></script>
<title>employee</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<style type="text/css">
.wide{
	width: 300px;
}
</style>
</head>

<body>

	<div class="contentbox">
		<form action="">
			<p>
				<label for="textfield"><strong>员工编号</strong>
				</label> <input type="text" id="userid" class="inputbox" onblur="checkbalance()"/> <br />
			</p>
			<p>
				<label for="textfield" ><strong>当前工资</strong>
				</label> <input type="text" id="curbalance" class="inputbox" readonly="readonly" value="${curbalance}"/> <br />
			</p>
			<p>
				<label for="textfield"><strong>应发工资</strong>
				</label> <input type="text" id="expend" class="inputbox" onblur="$('#balance').val($('#curbalance').val()-$('#expend').val())"/> <br />
			</p>
			<p>
				<label for="textfield"><strong>剩余工资</strong>
				</label> <input type="text" id="balance" class="inputbox" readonly="readonly" /> <br />
			</p>
		</form>

		<p>
			<br>
			
		</p>
		<input type="submit" value="Submit" class="btn" onclick="salaryAdd()"/> 
		<input type="reset" value="reset" class="btn" /> 
	</div>

</body>
</html>
